﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;

namespace ZDSoft.LMS.Domain
{
    //Where = "Type = 1"代表仅获取Type="1"的数据。其中，“1”来自于枚举“DictionaryType”代表“省份”
    [ActiveRecord("Dictionary", Where = "Type = 1")]
    public class Province : Dictionary<Province>
    {
        [HasMany(typeof(Station), ColumnKey = "StartStationID", Inverse = true)]
        public IList<Station> Stations { get; set; }
    }
}
